#include "thread.h"
int pwd(int netfd,dirID_t* dirID){
    char wd[1000];
    bzero(wd,sizeof(wd));
    get_user_dir(wd,dirID);
    train_t train;
    train.length=strlen(wd);
    memcpy(&train.buf,wd,train.length);
    send(netfd,&train.length,sizeof(int),MSG_NOSIGNAL);
    send(netfd,train.buf,train.length,MSG_NOSIGNAL);
    return 0;
}

